home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / m / multi_fax / multifaxv4a.dms / multifaxv4a.adf / Installation / Install-MFax < prev    next >
Text File  |  1995-05-12  |  19KB  |  864 lines

  1. ;***********************************************
  2. ; Script to install MultiFax professional
  3. ; $VER: Install-MFax 505.12 (12.05.95)
  4. ;
  5. ; © 1993-1995 TKR GmbH & Co. KG
  6. ;***********************************************
  7.  
  8. ;=============================================================================
  9. ; German strings
  10. (set default_lang 2)
  11.  
  12. (set @abort-button "Abbruch")
  13. (set #msg-oldoperatingsystem
  14.     (cat    "Die Version des Betriebsystems Ihres Rechners ist zu alt. "
  15.         "MultiFax benötigt mindestens eine Version 2.04 des Betriebsystems. "
  16.         "Bitte wenden Sie sich zwecks einer Aufrüstung des Betriebssystems "
  17.         "an Ihren örtlichen Amiga-Fachhändler."
  18.     )
  19. )
  20. (set #ask-target-prompt
  21.     (cat    "Auf welches Laufwerk oder in welches Verzeichnis soll "
  22.         "MultiFax installiert werden (Help... beachten!) ?"
  23.     )
  24. )
  25. (set #ask-target-help
  26.     (cat    "Das Verzeichnis \"MultiFax\" wird auf dem gewünschten "
  27.         "Laufwerk oder in dem gewünschten Verzeichnis automatisch "
  28.         "eingerichtet."
  29.     )
  30. )
  31. (set #already-exists-prompt
  32.     (cat    "Das Verzeichnis \"MultiFax\" existiert bereits! "
  33.         "Soll die Installation trotzdem durchgeführt werden?"
  34.     )
  35. )
  36. (set #already-exists-help
  37.     (cat    "JA - Ein bereits eingerichtetes MultiFax professional "
  38.         "wird überschrieben. Sollte es sich um die Version 2.0 "
  39.         "handeln, dann sollten Sie auf jeden Fall eine Neuinstallation "
  40.         "durchführen. "
  41.         "Bei einem bereits bestehenden MultiFax professional 3.0 "
  42.         "werden nur diejenigen Dateien überschrieben, die Sie "
  43.         "in dem nächsten Menü auswählen und die bereits bestehen.\n\n"
  44.         "NEIN - Die Installation wird nicht durchgeführt.\n\n"
  45.         "ACHTUNG:\n"
  46.         "Auch wenn die Updateinstallation in ein bestehendes altes "
  47.         "MultiFax-Verzeichnis vorgesehen ist, sollten Sie auf jeden "
  48.         "Fall eine Sicherheitskopie des Verzeichnisses erstellen, um "
  49.         "im Falle eines Falles weiterhin auf die Daten zugreifen zu "
  50.         "können.\n\n"
  51.     )
  52. )
  53. (set #choices-yes
  54.     (cat    "JA"
  55.     )
  56. )
  57. (set #choices-no
  58.     (cat    "NEIN"
  59.     )
  60. )
  61. (set #ask-disk2-prompt
  62.     (cat    "Bitte legen Sie Diskette 1 des Programmpaketes in "
  63.         "ein Laufwerk."
  64.     )
  65. )
  66. (set #ask-disk2.1-prompt
  67.     (cat    "Bitte legen Sie Diskette 2 des Programmpaketes in "
  68.         "ein Laufwerk."
  69.     )
  70. )
  71. (set #ask-disk2.2-prompt
  72.     (cat    "Bitte legen Sie Diskette 3 des Programmpaketes in "
  73.         "ein Laufwerk."
  74.     )
  75. )
  76. (set #ask-disk2-help
  77.     (cat    "Die Programme des MultiFax werden auf Ihr System kopiert."
  78.     )
  79. )
  80. (set #ask-libstarget-prompt
  81.     (cat    "In welches Verzeichnis sollen die MultiFax-Bibliotheken kopiert "
  82.         "werden (Help... beachten!) ?"
  83.     )
  84. )
  85. (set #ask-libstarget-help
  86.     (cat    "Das Verzeichnis \"Libs:\" ist das für diesen Zweck auf dem Amiga "
  87.         "standardmäßig vorgesehene. Sie sollten diesen Eintrag nur ändern, "
  88.         "wenn Sie ein anderes Verzeichnis für diesen Zweck eingerichtet und "
  89.         "dem System auch für diesen Zweck bekannt gemacht haben."
  90.     )
  91. )
  92. (set #ask-options-prompt
  93.     (cat    "Bitte wählen Sie die zu kopierenden Dateien:"
  94.     )
  95. )
  96. (set #ask-options-help
  97.     (cat    "Hiermit können Sie auch eine teilweise Installation durchführen. "
  98.         "Für eine normale Installation wählen Sie bitte alle Punkte an."
  99.     )
  100. )
  101. (set #ask-options-modules
  102.     (cat    "Module und Zeichensätze"
  103.     )
  104. )
  105. (set #ask-options-printerdriver
  106.     (cat    "MultiFax-Druckertreiber"
  107.     )
  108. )
  109. (set #ask-options-libraries
  110.     (cat    "MultiFax-Bibliotheken"
  111.     )
  112. )
  113. (set #ask-options-parameterfiles
  114.     (cat    "Parameterdateien"
  115.     )
  116. )
  117. (set #ask-options-catalogs
  118.     (cat    "Sprachkataloge"
  119.     )
  120. )
  121. (set #ask-options-manuals
  122.     (cat    "Anleitungen"
  123.     )
  124. )
  125. (set #ask-options-faxexamples
  126.     (cat    "Faxverzeichnisse"
  127.     )
  128. )
  129. (set #ask-options-letterheads
  130.     (cat    "Hintergrundgrafiken"
  131.     )
  132. )
  133. (set #ask-options-text
  134.     (cat    "Beispieltexte"
  135.     )
  136. )
  137. (set #ask-options-macros
  138.     (cat    "Makros"
  139.     )
  140. )
  141. (set #ask-options-pictures
  142.     (cat    "Beispielbilder"
  143.     )
  144. )
  145. (set #ask-options-templates
  146.     (cat    "Beispielmuster"
  147.     )
  148. )
  149. (set #ask-options-arexxexamples
  150.     (cat    "ARexx Beispiele"
  151.     )
  152. )
  153. (set #insert-assign-prompt
  154.     (cat    "Einfügen eines ASSIGN in Ihre \"S:user-startup\".\n"
  155.         "Dieser ist nach dem nächsten Start des Rechners aktiv."
  156.     )
  157. )
  158. (set #insert-assign-help
  159.     (cat    "Dieser ASSIGN ist für den Betrieb von MultiFax notwendig. "
  160.         "Sie können diesen Abschnitt aber auch überspringen (Skip "
  161.         "This Part) und den ASSIGN später per Hand durchführen."
  162.     )
  163. )
  164. (set #msg-finished
  165.     (cat    "Der Installationsvorgang ist nun beendet. Nehmen Sie bitte "
  166.         "jetzt die MultiFax-Disketten aus dem Laufwerk."
  167.         "\n\n"
  168.         "Unseren Neukunden - aber auch für \"alte Hasen\" interessant - "
  169.         "empfehlen wir die Lektüre des Kapitels 2 (Seite 6 ff.) und "
  170.         "des Anhangs D (Seite 53 ff.) des Addendums."
  171.         "\n\n"
  172.         "Aber Sie lesen Handbücher ja sowieso vor der Nutzung des "
  173.         "Programmes - oder ?"
  174.     )
  175. )
  176. (set #readmanual-prompt
  177.     (cat    "Ein Nachtrag mit etwaigen Änderungen des Programmpaketes "
  178.         "nach Drucklegung der Handbuchergänzung wurde auf "
  179.         "Ihrem System unter dem Namen \"Lies_mich_!!\" installiert. "
  180.         "Möchten Sie die Änderungen gleich lesen?!"
  181.     )
  182. )
  183. (set #msg-nohelpavailable
  184.     (cat    "\n\nKeine Hilfe verfügbar."
  185.     )
  186. )
  187.  
  188. ;=============================================================================
  189. ; English strings
  190. (if (= @language "english")
  191. (
  192. (set default_lang 4)
  193.  
  194. (set #msg-oldoperatingsystem
  195.     (cat    "The Version of the operating system of your computer is too old. "
  196.         "MultiFax needs at least a version 2.04 of the operating system. "
  197.         "Please contact your local dealer for an upgrade of the operating "
  198.         "system."
  199.     )
  200. )
  201. (set #ask-target-prompt
  202.     (cat    "In which disk or drawer should "
  203.         "MultiFax be installed (See also Help...!) ?"
  204.     )
  205. )
  206. (set #ask-target-help
  207.     (cat    "The drawer \"MultiFax\" will automatically be created "
  208.         "on the desired disk or in the desired drawer."
  209.     )
  210. )
  211. (set #already-exists-prompt
  212.     (cat    "The drawer \"MultiFax\" exists already! "
  213.         "Proceed this installation anyway?"
  214.     )
  215. )
  216. (set #already-exists-help
  217.     (cat    "YES - an already existing MultiFax professional will "
  218.         "be overwritten. If it should be the version 2.0, then "
  219.         "do a new complete installation. "
  220.         "If it is an existing MultiFax professional 3.0 "
  221.         "then only those files will be overwritten you choose "
  222.         "in the next menu and which already exist.\n\n"
  223.         "NO - The installation will be aborted.\n\n"
  224.         "WARNING:\n"
  225.         "Although an update installation into an existing old "
  226.         "MultiFax directory is supplied, you should in any case "
  227.         "make a backup of the old MultiFax directory, so that you "
  228.         "have access to the old data in the case the installation "
  229.         "fails.\n\n"
  230.     )
  231. )
  232. (set #choices-yes
  233.     (cat    "YES"
  234.     )
  235. )
  236. (set #choices-no
  237.     (cat    "NO"
  238.     )
  239. )
  240. (set #ask-disk2-prompt
  241.     (cat    "Please insert disk 1 of the software package in "
  242.         "any drive."
  243.     )
  244. )
  245. (set #ask-disk2.1-prompt
  246.     (cat    "Please insert disk 2 of the software package in "
  247.         "any drive."
  248.     )
  249. )
  250. (set #ask-disk2.2-prompt
  251.     (cat    "Please insert disk 3 of the software package in "
  252.         "any drive."
  253.     )
  254. )
  255. (set #ask-disk2-help
  256.     (cat    "The modules and data files of Multifax will be copied to your system."
  257.     )
  258. )
  259. (set #ask-libstarget-prompt
  260.     (cat    "In which directory shall the MultiFax libraries be copied "
  261.         "(See also Help...!) ?"
  262.     )
  263. )
  264. (set #ask-libstarget-help
  265.     (cat    "The directory \"Libs:\" is the default directory for this purpose "
  266.         "on the Amiga. You should only change the entry, if you have created "
  267.         "an other drawer for this purpose and told the system to use ist for "
  268.         "this purpose."
  269.     )
  270. )
  271. (set #ask-options-prompt
  272.     (cat    "Please, choose the files to copy:"
  273.     )
  274. )
  275. (set #ask-options-help
  276.     (cat    "You also can do a partly installation. For a standard "
  277.         "installation select all items."
  278.     )
  279. )
  280. (set #ask-options-modules
  281.     (cat    "Modules and fonts"
  282.     )
  283. )
  284. (set #ask-options-printerdriver
  285.     (cat    "MultiFax printer driver"
  286.     )
  287. )
  288. (set #ask-options-libraries
  289.     (cat    "MultiFax libraries"
  290.     )
  291. )
  292. (set #ask-options-parameterfiles
  293.     (cat    "Parameter files"
  294.     )
  295. )
  296. (set #ask-options-catalogs
  297.     (cat    "Language catalogs"
  298.     )
  299. )
  300. (set #ask-options-manuals
  301.     (cat    "Manuals"
  302.     )
  303. )
  304. (set #ask-options-faxexamples
  305.     (cat    "Fax directories"
  306.     )
  307. )
  308. (set #ask-options-letterheads
  309.     (cat    "Background graphics"
  310.     )
  311. )
  312. (set #ask-options-text
  313.     (cat    "Text examples"
  314.     )
  315. )
  316. (set #ask-options-macros
  317.     (cat    "Macros"
  318.     )
  319. )
  320. (set #ask-options-pictures
  321.     (cat    "Picture examples"
  322.     )
  323. )
  324. (set #ask-options-templates
  325.     (cat    "Template examples"
  326.     )
  327. )
  328. (set #ask-options-arexxexamples
  329.     (cat    "ARexx examples"
  330.     )
  331. )
  332. (set #insert-assign-prompt
  333.     (cat    "An ASSIGN needs to be added to your \"S:user-startup\".\n"
  334.         "This will automatically be active after the next "
  335.         "start of your computer."
  336.     )
  337. )
  338. (set #insert-assign-help
  339.     (cat    "This ASSIGN is necessary for running MultiFax. "
  340.         "Alternatively you can skip this part and set the ASSIGN "
  341.         "manually later."
  342.     )
  343. )
  344. (set #msg-finished
  345.     (cat    "The installation process has finished. Please remove "
  346.         "now all MultiFax disks from the drives."
  347.     )
  348. )
  349. (set #readmanual-prompt
  350.     (cat    "An addendum with any changes of the documentation of the "
  351.         "software package after printing the supplement has been installed "
  352.         "with the name \"Read_me_!!\" to your system. Do you want to "
  353.         "read it now?"
  354.     )
  355. )
  356. (set #msg-nohelpavailable
  357.     (cat    "\n\nNo help available."
  358.     )
  359. )
  360. )
  361. )
  362. ;end (if (= @language "english"))
  363.  
  364. ;=============================================================================
  365.  
  366.     ; set up a error cleanup routine
  367. (onerror
  368.     (makeassign "MultiFax_Disk" (safe))
  369. )
  370.  
  371. (complete 0)
  372.  
  373.     ; Prüfung auf ein Betriebsystem von mindestens OS2.04 (37.xxx).
  374. (
  375. (set vernum (getversion))
  376. (set ver (/ vernum 65536))
  377. (set rev (- vernum (* ver 65536)))
  378. (set osversion ver)
  379. (if (< osversion 37)
  380.     (
  381.     (abort #msg-oldoperatingsystem)
  382.     )
  383. )
  384. )
  385.     ; just in case the installation was restarted
  386. (makeassign "MultiFax_Disk" (safe))    ; start fresh
  387.  
  388.     ; see if this is really an update
  389.     ; if update, be sure they want program in same place
  390.     ; if not an update, get a location for program
  391. (set mfax_destdir
  392.         (askdir
  393.             (prompt #ask-target-prompt)
  394.             (help    #ask-target-help)
  395.             (default @default-dest)
  396.             (disk)
  397.         )
  398. )
  399. (set mfax_dest
  400.     (tackon mfax_destdir "MultiFax")
  401. )
  402.  
  403.     ; now lock on to volume 'mfax'
  404. (set reinstall 0)
  405. (if (exists mfax_dest)
  406.         ; Es gibt dort bereits ein MultiFax-Verzeichnis.
  407.     (
  408.     (set reinstall
  409.         (askbool
  410.             (prompt #already-exists-prompt)
  411.             (help    #already-exists-help)
  412.             (choices #choices-yes #choices-no)
  413.         )
  414.     )
  415.     (if (not reinstall)
  416.         (exit)
  417.     )
  418.     )
  419. )
  420.  
  421. (askdisk
  422.     (prompt    #ask-disk2-prompt)
  423.     (help    #ask-disk2-help)
  424.     (dest  "MF_4.0_Disk_1")
  425.     (newname "MultiFax_Disk")
  426. )
  427.  
  428.     ; make MFax drawer & icon if not there
  429. (if (not reinstall)
  430.     (
  431.     (makedir mfax_dest (infos))
  432.         ; MultiFax-Fenster-Piktogramm kopieren wegen der Fenstergröße.
  433.     (run (cat "Copy CLONE QUIET MultiFax_Disk:Installation/MultiFax.info TO \"" mfax_destdir "\""))
  434.     )
  435. )
  436.  
  437.     ; at this point we have a valid destination, so we tell installer where
  438.     ; the application will end up so the exit page will be correct -- also,
  439.     ; the installation log file (if any) will be copied to the destination
  440. (set @default-dest mfax_dest)
  441.  
  442. (set whichfiles 
  443.     (askoptions
  444.         (prompt #ask-options-prompt)
  445.         (help    #ask-options-help)
  446.         (choices #ask-options-modules
  447.              #ask-options-printerdriver
  448.              #ask-options-libraries
  449.              #ask-options-parameterfiles
  450.              #ask-options-catalogs
  451.              #ask-options-manuals
  452.              #ask-options-faxexamples
  453.              #ask-options-letterheads
  454.              #ask-options-text
  455.              #ask-options-macros
  456.              #ask-options-pictures
  457.              #ask-options-templates
  458.              #ask-options-arexxexamples)
  459.     )
  460. )
  461.  
  462.  
  463.     ; Parameter-Verzeichnis
  464. (if    (in whichfiles 3)
  465.         (if (> reinstall 0)
  466.                 ; Es wurde Update angewählt, also überflüssige
  467.                 ; Dateien löschen.
  468.             (
  469.             (run (cat "Delete ALL QUIET \"" (tackon mfax_dest "Parameter/FaxWin.INF") "\"")
  470.             )
  471.             (copyfiles
  472.                 (source "MultiFax_Disk:MultiFax/Parameter")
  473.                 (pattern "FaxDat~(9?).INF")
  474.                 (dest mfax_dest)
  475.                 (infos)
  476.             )
  477.             )
  478.                 ; Es wurde kein Update angewählt, also Neuinstallation.
  479.             (
  480.             (copyfiles
  481.                 (source "MultiFax_Disk:MultiFax/")
  482.                 (pattern "Parameter#?")
  483.                 (dest mfax_dest)
  484.                 (infos)
  485.             )
  486.                 ; Englisch? Dann die Programmsprache auch auf
  487.                 ; Englisch setzen.
  488.             (if (= default_lang 4)
  489.                 (textfile
  490.                     (dest (tackon mfax_dest "Parameter/Fax.INF"))
  491.                     (include "MultiFax_Disk:MultiFax/Parameter/Fax.INF")
  492.                     (append "PGMLANG         english\n")
  493.                 )
  494.             )
  495.             )
  496.         )
  497. )
  498.     ; Libs-Verzeichnis
  499. (if    (in whichfiles 2)
  500.     (
  501.             ; Abfrage des Verzeichnisses für die Bibliotheken.
  502.         (set libs_dest
  503.             (askdir
  504.                 (prompt #ask-libstarget-prompt)
  505.                 (help    #ask-libstarget-help)
  506.                 (default "Libs:")
  507.                 (disk)
  508.             )
  509.         )
  510.         (copylib
  511.             (source "MultiFax_Disk:MultiFax/Libs/multifax.library")
  512.             (dest libs_dest)
  513.         )
  514.         (copylib
  515.             (source "MultiFax_Disk:MultiFax/Libs/mfphone.library")
  516.             (dest libs_dest)
  517.         )
  518.         (copylib
  519.             (source "MultiFax_Disk:MultiFax/Libs/mfview.library")
  520.             (dest libs_dest)
  521.         )
  522.         (copylib
  523.             (source "MultiFax_Disk:MultiFax/Libs/tkrtools.library")
  524.             (dest libs_dest)
  525.         )
  526.     )
  527. )
  528.     ; Printers-Verzeichnis
  529. (if    (in whichfiles 1)
  530.     (
  531.         (if (> reinstall 0)
  532.                 ; Es wurde Update angewählt, also alten Treiber löschen.
  533.             (
  534.             (run "Delete ALL QUIET DEVS:Printers/MultiFaxDriver"
  535.             )
  536.             )
  537.         )
  538.         (copyfiles
  539.             (source "MultiFax_Disk:MultiFax/Printers")
  540.             (pattern "#?")
  541.             (dest "DEVS:Printers")
  542.             (infos)
  543.         )
  544.     )
  545. )
  546.     ; System-Verzeichnis
  547. (if    (in whichfiles 0)
  548.         (copyfiles
  549.             (source "MultiFax_Disk:MultiFax/")
  550.             (pattern "System#?")
  551.             (dest mfax_dest)
  552.             (infos)
  553.         )
  554. )
  555.     ; Anleitungen kopieren.
  556. (if    (in whichfiles 5)
  557.         ; Lies_mich_!!-Text kopieren.
  558.     (if (= default_lang 4)
  559.         (
  560.             (copyfiles
  561.                 (source "MultiFax_Disk:MultiFax/Read_Me_!!")
  562.                 (dest mfax_dest)
  563.             )
  564.             (copyfiles
  565.                 (source "MultiFax_Disk:MultiFax/Lies_mich_!!.info")
  566.                 (dest mfax_dest)
  567.                 (newname "Read_Me_!!.info")
  568.             )
  569.             (if (>= osversion 39)
  570.                 (
  571.                     ; Ab OS3.0 ist MultiView dabei. Dies ersetzt das
  572.                     ; Programm More. Sollte also auch als Standard-
  573.                     ; programm genommen werden.
  574.                 (tooltype
  575.                     (dest (tackon mfax_dest "Read_me_!!.info"))
  576.                     (setdefaulttool "SYS:Utilities/MultiView")
  577.                 )
  578.                 )
  579.             )
  580.         )
  581.         (
  582.             (copyfiles
  583.                 (source "MultiFax_Disk:MultiFax/")
  584.                 (pattern "Lies_mich_!!#?")
  585.                 (dest mfax_dest)
  586.                 (infos)
  587.             )
  588.             (if (>= osversion 39)
  589.                 (
  590.                     ; Ab OS3.0 ist MultiView dabei. Dies ersetzt das
  591.                     ; Programm More. Sollte also auch als Standard-
  592.                     ; programm genommen werden.
  593.                 (tooltype
  594.                     (dest (tackon mfax_dest "Lies_mich_!!.info"))
  595.                     (setdefaulttool "SYS:Utilities/MultiView")
  596.                 )
  597.                 )
  598.             )
  599.         )
  600.     )
  601. )
  602.     ; Output-Verzeichnis
  603. (if    (in whichfiles 6)
  604.         (copyfiles
  605.             (source "MultiFax_Disk:MultiFax/")
  606.             (pattern "Output#?")
  607.             (dest mfax_dest)
  608.             (infos)
  609.         )
  610. )
  611.     ; Input-Verzeichnis
  612. (if    (in whichfiles 6)
  613.         (copyfiles
  614.             (source "MultiFax_Disk:MultiFax/")
  615.             (pattern "Input#?")
  616.             (dest mfax_dest)
  617.             (infos)
  618.         )
  619. )
  620.     ; Archive-Verzeichnis
  621. (if    (in whichfiles 6)
  622.         (copyfiles
  623.             (source "MultiFax_Disk:MultiFax/")
  624.             (pattern "Archive#?")
  625.             (dest mfax_dest)
  626.             (infos)
  627.         )
  628. )
  629.  
  630.  
  631. (complete 30)
  632.  
  633. (askdisk
  634.     (prompt    #ask-disk2.1-prompt)
  635.     (help    #ask-disk2-help)
  636.     (dest  "MF_4.0_Disk_2")
  637.     (newname "MultiFax_Disk")
  638. )
  639.  
  640.     ; Catalogs-Verzeichnis
  641. (if    (in whichfiles 4)
  642.     (
  643.         (if (> reinstall 0)
  644.                 ; Es wurde Update angewählt, also alten Ordner löschen.
  645.             (
  646.             (run (cat "Delete ALL QUIET \"" (tackon mfax_dest "Catalogs") "\"")
  647.             )
  648.             )
  649.         )
  650.         (copyfiles
  651.             (source "MultiFax_Disk:MultiFax/")
  652.             (pattern "Catalogs#?")
  653.             (dest mfax_dest)
  654.             (infos)
  655.         )
  656.     )
  657. )
  658.     ; Letterheads-Verzeichnis
  659. (if    (in whichfiles 7)
  660.         (copyfiles
  661.             (source "MultiFax_Disk:MultiFax/")
  662.             (pattern "Letterheads#?")
  663.             (dest mfax_dest)
  664.             (infos)
  665.         )
  666. )
  667.     ; Text-Verzeichnis
  668. (if    (in whichfiles 8)
  669.         (copyfiles
  670.             (source "MultiFax_Disk:MultiFax/")
  671.             (pattern "Text#?")
  672.             (dest mfax_dest)
  673.             (infos)
  674.         )
  675. )
  676.     ; Rexx-Verzeichnis
  677. (if    (in whichfiles 12)
  678.         (copyfiles
  679.             (source "MultiFax_Disk:MultiFax/")
  680.             (pattern "Rexx#?")
  681.             (dest mfax_dest)
  682.             (infos)
  683.         )
  684. )
  685.     ; Templates-Verzeichnis
  686. (if    (in whichfiles 11)
  687.         (copyfiles
  688.             (source "MultiFax_Disk:MultiFax/")
  689.             (pattern "Templates#?")
  690.             (dest mfax_dest)
  691.             (infos)
  692.         )
  693. )
  694.     ; Macros-Verzeichnis
  695. (if    (in whichfiles 9)
  696.         (copyfiles
  697.             (source "MultiFax_Disk:MultiFax/")
  698.             (pattern "Macros#?")
  699.             (dest mfax_dest)
  700.             (infos)
  701.         )
  702. )
  703.     ; Pictures-Verzeichnis
  704. (if    (in whichfiles 10)
  705.         (copyfiles
  706.             (source "MultiFax_Disk:MultiFax/")
  707.             (pattern "Pictures#?")
  708.             (dest mfax_dest)
  709.             (infos)
  710.         )
  711. )
  712.  
  713.  
  714. (complete 60)
  715.  
  716. (askdisk
  717.     (prompt    #ask-disk2.2-prompt)
  718.     (help    #ask-disk2-help)
  719.     (dest  "MF_4.0_Disk_3")
  720.     (newname "MultiFax_Disk")
  721. )
  722.     ; Module
  723. (if    (in whichfiles 0)
  724.     (
  725.         (copyfiles
  726.             (source "MultiFax_Disk:MultiFax/MultiFax")
  727.             (dest mfax_dest)
  728.             (infos)
  729.         )
  730.         (copyfiles
  731.             (source "MultiFax_Disk:MultiFax/Server")
  732.             (dest mfax_dest)
  733.             (infos)
  734.         )
  735.         (copyfiles
  736.             (source "MultiFax_Disk:MultiFax/Spooler")
  737.             (dest mfax_dest)
  738.             (infos)
  739.         )
  740.         (copyfiles
  741.             (source "MultiFax_Disk:MultiFax/Desk")
  742.             (dest mfax_dest)
  743.             (infos)
  744.         )
  745.         (copyfiles
  746.             (source "MultiFax_Disk:MultiFax/Logbook")
  747.             (dest mfax_dest)
  748.             (infos)
  749.         )
  750.         (copyfiles
  751.             (source "MultiFax_Disk:MultiFax/View")
  752.             (dest mfax_dest)
  753.             (infos)
  754.         )
  755.         (copyfiles
  756.             (source "MultiFax_Disk:MultiFax/Config")
  757.             (dest mfax_dest)
  758.             (infos)
  759.         )
  760.         (copyfiles
  761.             (source "MultiFax_Disk:MultiFax/EditPhone")
  762.             (dest mfax_dest)
  763.             (infos)
  764.         )
  765.         (copyfiles
  766.             (source "MultiFax_Disk:MultiFax/PreConvert")
  767.             (dest mfax_dest)
  768.         )
  769.         (copyfiles
  770.             (source "MultiFax_Disk:MultiFax/MFRexx")
  771.             (dest mfax_dest)
  772.         )
  773.         (copyfiles
  774.             (source "MultiFax_Disk:MultiFax/FaxArchiv.info")
  775.             (dest mfax_dest)
  776.         )
  777.         (if (not reinstall)
  778.                 ; Im Falle einer Neuinstallation sicherheitshalber
  779.                 ; den Telefonbuchkonverter MF 2.0 --> MF 3.0
  780.                 ; installieren.
  781.             (copyfiles
  782.                 (source "MultiFax_Disk:MultiFax/ConvertPhone")
  783.                 (dest mfax_dest)
  784.             )
  785.         )
  786.     )
  787. )
  788.  
  789.  
  790. (tooltype
  791.     (dest mfax_dest)
  792.     (noposition)
  793. )
  794.  
  795.  
  796.    ;
  797.    ; these libraries are necessary for MultiFax, make sure that they are there:
  798.    ;
  799.  
  800. (complete 95)
  801.  
  802.     ; modify S:User-Startup
  803. (startup "MultiFax"
  804.     (prompt #insert-assign-prompt)
  805.     (command
  806.         "ASSIGN MultiFax: \"" mfax_dest "\"\n"
  807.     )
  808.     (help #insert-assign-help)
  809. )
  810.  
  811.     ; reinitialize assigns
  812. (if (not @pretend)
  813.     (makeassign "MultiFax" mfax_dest)
  814. )
  815.  
  816. (complete 100)
  817.  
  818.     ; cleanup
  819. (makeassign "MultiFax_Disk" (safe))
  820.  
  821. (message #msg-finished)
  822.  
  823.     ; Zum Schluß hat der Anwender gleich Gelegenheit, das Ergänzungshandbuch
  824.     ; zu lesen. Aber nur, wenn er es auch installiert hat.
  825. (if    (in whichfiles 5)
  826.     (
  827.     (set readmanual
  828.         (askbool
  829.             (prompt #readmanual-prompt)
  830.             (help #msg-nohelpavailable)
  831.             (choices #choices-yes #choices-no)
  832.         )
  833.     )
  834.     (if (> readmanual 0)
  835.         (
  836.         (set editor "SYS:Utilities/More")
  837.             ; Prüfung auf ein Betriebsystem von mindestens OS3.0 (39.xxx).
  838.         (if (>= osversion 39)
  839.                 ; Ab OS3.0 ist MultiView dabei. Dies ersetzt das
  840.                 ; Programm More. Sollte also auch als Anzeige-
  841.                 ; programm genommen werden.
  842.             (set editor "SYS:Utilities/MultiView")
  843.         )
  844.         (if (= default_lang 4)
  845.             (textfile
  846.                 (dest "RAM:TMP")
  847.                 (append (cat "Run >NIL: " editor " MultiFax:Read_me_!!\n"))
  848.             )
  849.             (textfile
  850.                 (dest "RAM:TMP")
  851.                 (append (cat "Run >NIL: " editor " MultiFax:Lies_mich_!!\n"))
  852.             )
  853.         )
  854.         (execute "RAM:TMP")
  855.         (run "Delete QUIET RAM:TMP")
  856.         )
  857.     )
  858.     )
  859. )
  860.  
  861.     ; this is not strictly necessary, but doesn't hurt -- there is always
  862.     ; a default (exit) at the end of any script
  863. (exit (quiet))
  864.